#!/usr/bin/python
# -*- coding: UTF-8 -*-  

def count():
	def f(j):
		def g():
			return j * j
		return g
	fs = []
	for x in range(1,4):
		fs.append(f(x))
	return fs

def count2():
	def f(j):
		return lambda : j * j
	fs = []
	for x in range(1,4):
		fs.append(f(x))
	return fs

def main():
	f1,f2,f3 = count()
	print(f1(),f2(),f3())

if __name__ == '__main__':
	main()